//考试成绩统计
#include<iostream>
#include<string.h>
using namespace std;
int main()
{
	int scorse[3][3] =
	{
		{100,100,100},
		{90,50,100},
		{80,70,60}
	};
	string names[3] = { "张三","李四","王五" };

	string subject[3] = { "语文","数学","英语" };
	for (int i = 0; i < sizeof(subject) / sizeof(subject[0]); i++) {
		cout << subject[i] << "\t";;
	}
	cout << endl;
	for (int i = 0; i < sizeof(scorse) / sizeof(scorse[0]); i++) {
		int sum = 0;
		for (int j = 0; j < sizeof(scorse[0]) / sizeof(scorse[0][0]); j++) {
			sum += scorse[i][j];
			cout << scorse[i][j] <<"\t";
		}
		cout <<names[i] << "的总分：" << sum << endl;
	}
	system("pause");
	return 0;
}